<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title> </title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	
	[#include "/admin/include/head.htm"]
	
	<script type="text/javascript">
		$(function(){
			var mainform = $("#mainform");  
			//表单底部按钮 
		    LG.setFormDefaultBtn(f_cancel, function(){
				f_save(mainform, "b2c_delivery_center_list");
			});
			
			$(".areaSelect").lSelect({
				url: "${base}/common/area.jhtml"// Json数据获取url
			});
		});
	</script>
	
	[#if !deliveryCenter??]
		[#assign isAdd = true /]
	[#else]
		[#assign isEdit = true /] 
	[/#if]
</head>
<body style="padding:10px; ">
	<div id="tabcontainer" style="margin:0; padding:0">
		<form action="[#if isAdd??]save.jhtml[#else]update.jhtml[/#if]" method="post" class="validate" id="mainform">
			[#if !isAdd??]
				<input type="hidden" name="id" value="${(deliveryCenter.id)!''}"/>
			[/#if]
			<table class="inputTable2">
				<tr>
					<th>发货点名称：</th>				
					<td>
						<input type="text" name="name" value="${(deliveryCenter.name)!}" class="formText {required:true, remote: '${base}/admin/b2c/deliveryCenter/checkName.jhtml?oldName=${(deliveryCenter.name)!}', messages: {remote: '发货点名称已存在!'}}" />
					</td>
				</tr>
				<tr>
					<th>发货点联系人：</th>				
					<td>
						<input type="text" name="sender" value="${(deliveryCenter.sender)!}" class="formText {required:true}" />
					</td>
				</tr>
				<tr>
					<th>手机号码：</th>				
					<td>
						<input type="text" name="mobile" value="${(deliveryCenter.mobile)!}" class="formText {required:true}" />
					</td>
				</tr>
				<tr>
					<th>电话号码：</th>				
					<td>
						<input type="text" name="telephone" value="${(deliveryCenter.telephone)!}" class="formText {required:true}" />
					</td>
				</tr>
				
				<tr>
					<th>所属地区：</th>
					<td colspan="3">
						<input type="hidden" name="areaId" treePath="${(area.path)!}" class="input1 areaSelect {required: true}" value="${(area.id)!''}" />
					</td>
				</tr>
				<tr>
					<th>地址：</th>
					<td colspan="3">
						<input type="text" name="address" value="${(deliveryCenter.address)!''}" 
							class="formText {required: true,maxlength: 255}" style="width: 400px;" />
					</td>
				</tr>
				<tr>
					<th>是否默认:</th>
					<td>
						<input type="checkbox" name="isDefault" value="true" [#if deliveryCenter??&&deliveryCenter.isDefault??]checked="true"[/#if]/>
					</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>